#include<bits/stdc++.h>

using namespace std;

int f(int a, int n) {
    if (n == 0)
        return 1;
    else
        return f(a, n - 1) * a;
}


int main() {
    int a = 2, n = 9;
    cout << f(a, n);

    return 0;
}
